package com.chushouya.manager.dto.admin.store.admin;

import com.chushouya.manager.constants.AlipayAuditStatusEnum;
import com.chushouya.manager.constants.StoreStatusEnum;
import com.general.framework.web.annotations.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("门店列表")
public class StoreListDTO {

    @ApiModelProperty("门店ID")
    @Excel(name = "门店ID")
    private Long storeId;

    @ApiModelProperty("门店名称")
    @Excel(name = "门店名称")
    private String storeName;

    @ApiModelProperty("门店照片")
    private String storePhoto;

    @ApiModelProperty("营业执照")
    private String licensePhoto;

    @ApiModelProperty("门店联系人")
    @Excel(name = "门店联系人")
    private String contactUser;

    @ApiModelProperty("联系人手机号")
    @Excel(name = "联系人手机号")
    private String contactPhone;

    @ApiModelProperty("关联的回收商ID")
    private Long merchantId;

    @ApiModelProperty("关联的回收商名称")
    @Excel(name = "关联的回收商名称")
    private String merchantName;

    @ApiModelProperty("关联的代理商ID")
    private Long proxyId;

    @ApiModelProperty("关联的代理商名称")
    @Excel(name = "关联的代理商名称")
    private String proxyName;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("状态")
    private String statusDesc;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市")
    private String city;

    @ApiModelProperty("县")
    private String area;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("")
    private String auditRemark;

    @ApiModelProperty("")
    private Date createTime;

    @ApiModelProperty("是否绑定")
    private Integer bindStatus;

    @ApiModelProperty("支付宝状态")
    private Integer alipayAuditStatus;

    @ApiModelProperty("支付宝状态")
    private String alipayAuditStatusDesc;

    public String getStatusDesc() {
        return StoreStatusEnum.getDesc(this.status);
    }

    public String getAlipayAuditStatusDesc() {
        return AlipayAuditStatusEnum.getDesc(this.alipayAuditStatus);
    }
}
